#!/bin/bash

echo "======================== Install devstack ====================="
echo "My Account is : " 
whoami
cd /home/stack
git clone https://github.com/openstack-dev/devstack.git
cd devstack

LOCAL="local.conf"
rm -rf ./$LOCAL

wget -O /home/stack/devstack/$LOCAL https://conf.googlecode.com/svn/trunk/devstack/single/$LOCAL


git checkout -b havana -t remotes/origin/stable/havana

echo "##### update stackrc #########"

echo "##### start stack.sh #########"
./stack.sh
